package graph;

public class Test {

    public static void main(String[] args) {
        fun(new Round());
        fun(new Square());
        fun(new Triangle());
        fun(new wujiaoxing());
        Graph graph=new Square();
    }

    //通过这个方法接收所有图形类，调用print方法打印图形
    public static void fun(Graph graph){
        graph.print();
    }
}
